package qq2564874169.tuaotuao.fx.app;


import qq2564874169.tuaotuao.fx.encrypt.Encrypt;

public class AuthParam {
    public String userId;
    public boolean isAbsTime;
    public long expire;
    public Object state;
    public String sign;

    String url;
    boolean isLogin;
    boolean fromHeader;
    boolean fromCookie;
    String token;

    public String getUrl() {
        return url;
    }

    public String getSign(String secret) {
        String str = String.join(".", "@", userId, isAbsTime + "", expire + "", "#", secret);
        return Encrypt.md5(str, true);
    }
}
